
#ifndef STATEENDGAME_H
#define STATEENDGAME_H

#include "GameState.h"
#include "TextEntity.h"
#include "Singleton.h"
#include "TimeLineEffect.h"

class StateEndGame : public GameState, public Singleton<StateEndGame>
{
private:
    enum eStateEndGame { Entering, Showing, BackToGame, ToMainMenu, ToShop };
    
    eStateEndGame m_eState;
    
    RenderableEntity* m_oBGFade;
    RenderableEntity* m_oBG;
    
    RenderableEntity* m_oRibbon;
    TextEntity* m_oResults;
    
    RenderableEntity* m_oBabiesCurrentIcon;
    TextEntity* m_oBabiesCurrentValue;
    RenderableEntity* m_oCoinsCurrentIcon;
    TextEntity* m_oCoinsCurrentValue;

    RenderableEntity* m_oTotalsBg;
    RenderableEntity* m_oCoinsTotalIcon;
    TextEntity* m_oCoinsTotalValue;
    TextEntity* m_oGoToShop;
    
    RenderableEntity* m_oFacebook;
    RenderableEntity* m_oTwitter;
    
    RenderableEntity* m_oLeftBg;
    RenderableEntity* m_oRightBg;

    TextEntity* m_tMainMenu;
    TextEntity* m_tPlayAgain;
    
    TimeLineEffect* m_eEndGame_Enter;
    TimeLineEffect* m_eEndGame_MainMenu;
    TimeLineEffect* m_eEndGame_PlayAgain;
    
public:
    
	StateEndGame();
	~StateEndGame();
    
	void loadContent();
	void unloadContent();
    
    void enter();
	void update(float dt);
	void render();
    void exit();
};

#endif
